package com.jianggujin.modulelink.test;

import com.jianggujin.modulelink.support.annotation.JIntercepts;
import com.jianggujin.modulelink.support.annotation.JSignature;
import com.jianggujin.modulelink.support.plugin.JAbstractInterceptor;
import com.jianggujin.modulelink.support.plugin.JInvocation;

@JIntercepts({ @JSignature(type = CustomAction.class, method = "handle") })
public class GlobalInterceptor2 extends JAbstractInterceptor {
    @Override
    public Object intercept(JInvocation invocation) throws Throwable {
        System.out.println("before....");
        Object ret = invocation.proceed();
        System.out.println("after....");
        return ret;
    }
}